import request from "..";

export const getTemplateList = () => {
    return request.get('/templates');
}
export const createTemplate = (data:any) => {
    return request.post('/templates',data);
}
export const updateTemplate = (data:any) => {
    return request.put('/templates/'+data.id,data);
}
export const deleteTemplate = (id:number) => {
    return request.delete('/templates/'+id);
}